    class RegularPolygon
   {
      double number;
      double length;
      double apothem;
		double radius;
   
       public RegularPolygon (double number, double length)
      {
         this.number=number;
         this.length=length;
      }
   
       public RegularPolygon (double apothem, double number, double length)
      {
         this.number=number;
         this.length=length;
         this.apothem=apothem;
      }
		
   
       public double getArea()
      {
			double area=(length * length * number)/(4 * Math.tan(180/number));
			return area;
			
      }
		
		public double getArea2()
		{
			double p= number * length;
			double area=(apothem * p) / 2;
			return area;
   	}
		
       public double getPerimeter()
      {
			double p=number * length;
			return p;
      }
   }